package com.taotao.portal.feign;


import com.taotao.common.dto.TbContent;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * Created by zhang_xming on 2017/2/13.
 */
@FeignClient(name = "taotao-content")
public interface ContentFeignClient {
    /**
     * 通过Id查找实体
     * @param cid
     * * @return
     */
    @RequestMapping(value = "/getContentByCid/{cid}", method = RequestMethod.GET)
    public List<TbContent> getContentByCid(@PathVariable("cid") long cid);
}
